package com.source.lightfowl.basedata.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * @Author: cxy
 * @Description: 去向市场
 */
@Entity
@Data
@Table(name = "to_market")
public class ToMarket{

    @Id
    private String id; //去向市场编号

    private String name;
    private String province; //省
    private String city; //市
    private String district; //区
    private String addr; //详细地址
    private String markCode; //去向市场二维码
    private String stallName;//去向市场档口名称
    private String stallCode; //去向市场档口二维码
    private String marketLongitude;//经度
    private String marketLatitude;//纬度
//    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT-8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    @ApiModelProperty(hidden = true)
    private String markCodeAnalysis;
    @ApiModelProperty(hidden = true)
    private String stallCodeAnalysis;
    @ApiModelProperty(hidden = true)
    private Integer state; //状态（0已删1正常2发布待审核3删除待审核）

}
